package yannan.voiplock4ble.bean;

import org.greenrobot.greendao.annotation.Entity;

import java.io.Serializable;

import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

/**
 * 说明：锁的Bean对象
 * 作者：mainTel
 * 时间：2016/8/25 13:28
 * 备注：
 */
@Entity
public class LockBean implements Serializable {

    /**
     * lockName 	锁名称
     * batteryQuantity	电量
     * veinKeyState	指静脉启用状态（1:启用；0:未启用）
     * pwdKeyState	密码启用状态（1:启用；0:未启用）
     * lockserialId	序列号
     * userPermission	用户关于这一把锁的权限（1:管理员；0:普通用户）
     */
    @Id
    public Long id;

    private static final long serialVersionUID = -858498202645943600L;
    public String lockName;
    public float batteryQuantity;
    public int veinKeyState;
    public int pwdKeyState;
    public String lockserialId;
    public String userId;
    public int userPermission;
    public String mac;


    public LockBean(String lockName, float batteryQuantity, int veinKeyState,
                    int pwdKeyState, String lockserialId, int userPermission) {
        this.lockName = lockName;
        this.batteryQuantity = batteryQuantity;
        this.veinKeyState = veinKeyState;
        this.pwdKeyState = pwdKeyState;
        this.lockserialId = lockserialId;
        this.userPermission = userPermission;
    }

    
    public LockBean() {
    }


    @Generated(hash = 62265812)
    public LockBean(Long id, String lockName, float batteryQuantity,
            int veinKeyState, int pwdKeyState, String lockserialId, String userId,
            int userPermission, String mac) {
        this.id = id;
        this.lockName = lockName;
        this.batteryQuantity = batteryQuantity;
        this.veinKeyState = veinKeyState;
        this.pwdKeyState = pwdKeyState;
        this.lockserialId = lockserialId;
        this.userId = userId;
        this.userPermission = userPermission;
        this.mac = mac;
    }



    public String getLockName() {
        return this.lockName;
    }

    public void setLockName(String lockName) {
        this.lockName = lockName;
    }

    public float getBatteryQuantity() {
        return this.batteryQuantity;
    }

    public void setBatteryQuantity(float batteryQuantity) {
        this.batteryQuantity = batteryQuantity;
    }

    public int getVeinKeyState() {
        return this.veinKeyState;
    }

    public void setVeinKeyState(int veinKeyState) {
        this.veinKeyState = veinKeyState;
    }

    public int getPwdKeyState() {
        return this.pwdKeyState;
    }

    public void setPwdKeyState(int pwdKeyState) {
        this.pwdKeyState = pwdKeyState;
    }

    public String getLockserialId() {
        return this.lockserialId;
    }

    public void setLockserialId(String lockserialId) {
        this.lockserialId = lockserialId;
    }

    public int getUserPermission() {
        return this.userPermission;
    }

    public void setUserPermission(int userPermission) {
        this.userPermission = userPermission;
    }

    @Override
    public String toString() {
        return lockName;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserId() {
        return this.userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getMac() {
        return this.mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public String toStringMy() {
        return "LockBean{" +
                "id=" + id +
                ", lockName='" + lockName + '\'' +
                ", batteryQuantity=" + batteryQuantity +
                ", veinKeyState=" + veinKeyState +
                ", pwdKeyState=" + pwdKeyState +
                ", lockserialId='" + lockserialId + '\'' +
                ", userId='" + userId + '\'' +
                ", userPermission=" + userPermission +
                ", mac='" + mac + '\'' +
                '}';
    }
}
